var logic = require('./logic');

exports.Debug = function() {
    var uid = require('./config.js').DebugUID;

    query = {mod: 'user',act: 'login', args:{'name':'', 'headpic':'', 'openid':'', 'openkey':'', 'user':'{}'}};

    //query = {mod: 'castle',act: 'harvest', args:{}};

    //query = {mod: 'farm',act: 'harvest', args:{}};

    //query = {mod: 'barrack',act: 'train', args:{'cash':0}};

    //query = {mod: 'barrack',act: 'train', args:{'cash':1}};

    //query = {mod: 'tavern',act: 'invite', args:{'all':0,'cash':0}};

    //query = {mod: 'tavern',act: 'invite', args:{'all':1,'cash':1}};

    //query = {mod: 'tavern',act: 'leave', args:{}};

    //query = {mod: 'tavern',act: 'enroll', args:{'pos':1}};

    //query = {mod: 'tavern',act: 'recall', args:{'type':'green'}};

    //query = {'mod': 'role','act': 'train', 'args':{'rid':103,'pos':2}};

    //query = {'mod': 'role','act': 'upgrade_seat', 'args':{'pos':1}};

    //query = {'mod': 'role','act': 'clear_seat', 'args':{'pos':2}};

    //query = {'mod': 'role','act': 'upgrade_grouth', 'args':{'rid':52,'times':1}};

    //query = {'mod': 'role','act': 'upgrade_army', 'args':{'rid':28}};

    //query = {mod: 'role',act: 'kill', args:{'rid':118}};

    //query = {mod: 'role',act: 'wear', args:{'rid':48,'isskill': 0, 'id':4, 'erid': 0}};

    //query = {mod: 'equip',act: 'buy', args:{'type':'accessory'}};

    //query = {mod: 'equip',act: 'make', args:{'erid':48,'eid':9,'lucky':3}};

    //query = {mod: 'equip',act: 'strengthen',args:{'eid':2, 'erid':21}};

    //query = {mod: 'role',act: 'transfer', args:{'rid':8, 'trid':33, 'cash':0}};
   
    //query = {mod: 'battle',act: 'save_team', 
    //        args:{'team':{'0':0 , '1':0, '2':0,'3':0,'4':0,'5':0,'6':0,'7':0,'8':0}}};

    query = {mod: 'battle',act: 'duplicate', args:{'id': 5}};

    query = {mod: 'battle',act: 'auto_duplicate', args:{'id':80,'round':99}};

    //query = {'mod': 'battle','act': 'tower', 'args':{'id':10}};

    //query = {'mod': 'battle','act': 'kill', 'args':{'id' : 2, 'pos': 3,'roles' : [48,6,218]}};

    //query = {mod: 'mine',act: 'get', args:{level:1, id:1}};

    //query = {mod: 'mine',act: 'occupy', args:{level:40, id:1, pos:1, cash:1}};

    //query = {mod: 'business',act: 'go', args:{cash:1}};

    //query = {mod: 'business',act: 'open', args:{pos:1}};

    //query = {mod: 'business',act: 'back', args:{}};

    //query = {mod: 'tech',act: 'upgrade', args:{'id':4, 'ten' : 1}};

    //query = {mod: 'inventory',act: 'use_role_card', args:{rid:170}};

    //query = {mod: 'inventory',act: 'buy', args:{id:31, num:1}};

    //query = {mod: 'rank',act: 'fight', args:{rank:1, cash: 0}};

    //query = {mod: 'rank',act: 'get', args:{}};

    //query = {mod: 'rank',act: 'get_top', args:{}};

    //query = {mod: 'rank',act: 'get_user', args:{'id':1000176}};

    //query = {mod: 'rank',act: 'get_reward', args:{}};

    //query = {mod: 'battle',act: 'reset_tower', args:{'cash':1}};

    //query = {mod: 'battle',act: 'reset_kill', args:{'cash':0, 'id' : 1}};

    //query = {mod: 'battle',act: 'buy_food', args:{}};
    
    //query = {mod: 'role',act: 'take_off', args:{'id' :97, 'erid' : 9}};

    //query = {mod: 'battle',act: 'auto_duplicate', args:{'id':3,'round' :1 }};

    //query = {mod: 'battle',act: 'auto_tower', args:{}};

    //query = {mod: 'role',act: 'upgrade_skill', args:{'rid':63, 'skill':2}};
    
    //query = {mod: 'activity',act: 'online_reward', args:{'time':128}};

    //query = {mod: 'replay',act: 'get', args:{'id':1, 'place' : 'rank'}};

    //query = {mod: 'activity',act: 'level_pack', args:{'level':30}};

    //query = {mod: 'task',act: 'get_reward', args:{'score':30}};

    //query = {mod: 'task',act: 'get', args:{}};
    
    //query = {mod: 'user',act: 'npc_harvest', args:{}};

    //query = {mod: 'inventory',act: 'sell', args:{'type':'material', 'id':13, 'num':2}};

    //query = {mod: 'user',act: 'sign', args:{'cash':1}};

    //query = {mod: 'user',act: 'get_sign', args:{}};

    //query = {mod: 'user',act: 'get_sign_reward', args:{'times':0}};
    
    //query = {mod: 'user',act: 'get_login_reward', args:{'day':1}};

    //query = {mod: 'prison',act: 'get', args:{}};

    //query = {mod: 'prison',act: 'get_target', args:{}};

    //query = {mod: 'prison',act: 'capture', args:{'enemy':10003, 'pos':1}};

    //query = {mod: 'prison',act: 'resist', args:{}};

    //query = {mod: 'prison',act: 'press', args:{'pos':1}};

    //query = {mod: 'prison',act: 'auto_free', args:{}};

    //query = {mod: 'activity',act: 'system_reward', args:{'id':null}};

    //query = {mod: 'user',act: 'tutorial', args:{'step':'6'}};

    //query = {mod: 'league',act: 'create', args:{'name':'one','country':'wei'}};

    //query = {mod: 'league',act: 'exit', args:{}};

    //query = {mod: 'message',act: 'im', args:{'name':'renbing', 'content':'test'}};

    //query = {mod: 'message',act: 'get', args:{}};

    //query = {mod: 'user',act: 'get_seven_days_reward', args:{day:1}};

    //query = {mod: 'gem',act: 'upgrade', args:{eid:2, slot:2}};

    //query = {mod: 'gem',act: 'merge', args:{gid:102}};

    //query = {mod: 'activity',act: 'leveltop_reward', args:{'level':40}};

    //query = {mod: 'role',act: 'refine', args:{'rid':48, 'level':3}};

    //query = {mod: 'user',act: 'get_vip_reward', args:{'vip':7}};

    //query = {mod: 'role',act: 'soul', args:{'rid':6,'card1':2,'card2':4,'card3':11}};

    //query = {mod: 'activity',act: 'start_wheel', args:{'cash': 1}};

    //query = {mod: 'activity',act: 'get_wheel_reward', args:{}};

    //query = {mod: 'leaguewar',act: 'get', args:{}};

    //query = {mod: 'leaguewar',act: 'get_city', args:{city:5}};

    //query = {mod: 'leaguewar',act: 'get_energy', args:{}};

    //query = {mod: 'rank',act: 'share_tv', args:{content:'你好', id: }};

    //query = {mod: 'activity',act: 'invest_join', args:{id:1 }};

    //query = {mod: 'activity',act: 'invest_get', args:{day:3 }};
    
    //query = {mod: 'leaguewar',act: 'get', args:{}};

    //query = {mod: 'leaguewar',act: 'move', args:{city:2}};

    //query = {mod: 'leaguewar',act: 'fight', args:{enemy:1000039}};

    //query = {mod: 'leaguewar',act: 'rank_personal', args:{}};

    //query = {mod: 'leaguewar',act: 'clear_cd', args:{}};

    //query = {mod: 'leaguewar',actopOnest: 'end_war', args:{}};

    //query = {mod: 'leaguewar',act: 'rank_global', args:{}};

    //query = {mod: 'leaguewar',act: 'preview_war', args:{}};

    //query = {mod: 'user',act: 'buy_gold', args:{}};
    
    //query = {mod: 'role',act: 'awake', args:{rid: 2}};

    //query = {mod: 'boss',act: 'get', args:{}};

    //query = {mod: 'boss',act: 'inspire', args:{type:0}};

    //query = {mod: 'boss',act: 'rank', args:{}};

    //query = {mod: 'boss',act: 'get_kill_reward', args:{}};

    //query = {mod: 'boss',act: 'get_reward', args:{}};

    //query = {mod: 'boss',act: 'rebirth', args:{type: 'cash'}};

    //query = {mod: 'boss',act: 'inspire', args:{type: 'cash'}};

    //query = {mod: 'boss',act: 'boss_blood', args:{type: 'cash'}};

    //query = {mod: 'boss',act: 'fight', args:{type: 'cash'}};

    //query = {mod: 'tavern',act: 'gold_recall', args:{rid: 2}};
    
    //query = {mod: 'battle',act: 'duplicate', args:{id: 10012}};

    //query = {mod: 'activity',act: 'system_reward', args:{'id':1}};

    //query = {mod: 'blackshop',act: 'get', args:{'level':3}};

    //query = {mod: 'blackshop',act: 'buy', args:{id: 17}};

    //query = {mod: 'activity',act: 'get_limit_buy', args:{}};

    //query = {mod: 'activity',act: 'do_limit_buy', args:{id:1}};

    //query = {mod: 'activity',act: 'surprise_go', args:{ten: 0}};

    //query = {mod: 'leaguewar',act: 'get_register', args:{}};

    //query = {mod: 'leaguewar',act: 'register', args:{}};

    //query = {mod: 'leaguewar',act: 'preview_war', args:{}};

    //query = {mod: 'leaguewar',act: 'get_ex_energy', args:{}};

    //query = {mod: 'league',act: 'get', args:{}};

    //query = {mod: 'leaguewar',act: 'get_reward', args:{}};

    //query = {mod: 'leaguewar',act: 'buy_energy', args:{}};

    //query = {mod: 'activity',act: 'get_offline_xp', args:{'cash':1}};

    //query = {mod: 'rank',act: 'get_topone2', args:{}};

    //query = {mod: 'rank',act: 'topone2_vote', args:{'flower':1}};

    //query = {mod: 'rank',act: 'get_topone2_rank', args:{}};

    //query = {mod: 'rank',act: 'challenge_topone2', args:{}};

    //query = {mod: 'rank',act: 'get_topone2_rank_reward', args:{}};

    //query = {mod: 'equip',act: 'refine',args:{'eid':11, 'erid':4, 'ten':0}};

    //query = {mod: 'tomb',act: 'fight', args:{id: 2}};

    //query = {mod: 'tomb',act: 'dig', args:{id: 2}};

    query = {mod: 'activity',act: 'get_charge', args:{}};

    //query = {mod: 'activity',act: 'charge_reward', args:{'id': 2000}};

    //query = {mod: 'inventory',act: 'open_slot', args:{'id':54}};

    //query = {mod: 'inventory',act: 'use', args:{'id':55}};

    //query = {mod: 'tomb',act: 'get_reward', args:{id: 2}};

    //query = {mod: 'activity',act: 'buy_feed', args:{id:58, num:10}};

    //query = {mod: 'activity',act: 'get_yellow_diamond', args:{}};

    //query = {mod: 'gm',act: 'market_diamond', args:{'key':'use it carefully'}};

    //query = {mod: 'activity',act: 'get_yellow_diamond_reward', args:{}};

    //query = {mod: 'gm',act: 'pay', args:{'key':'0','cash':500}};

    //query = {mod: 'gm',act: 'pay', args:{'key':'0','cash':5000}};

    //query = {mod: 'activity',act: 'get_yellow_diamond_reward', args:{}};

    //query = {mod: 'achievement',act: 'get', args:{}};

    //query = {mod: 'achievement',act: 'get_stage_reward', args:{}};

    //query = {mod: 'achievement',act: 'get_goal_reward', args:{'goal':14}};

    //query = {mod: 'activity',act: 'wish', args:{id: 2}};

    //query = {mod: 'forge',act: 'get_award', args:{id: 2}};

    //query = {mod: 'activity',act: 'get_yellow_charge_reward', args:{'id':24}};

    //query = {mod: 'role',act: 'open_all_skill', args:{}};

    //query = {mod: 'activity',act: 'gentry_get', args:{id: 2}};

    //query = {mod: 'activity',act: 'get_gentry_reward', args:{id: 2}};

    //query = {mod: 'serverwar',act: 'get', args:{}};

    //query = {mod: 'serverwar',act: 'register', args:{}};

    //query = {mod: 'serverwar',act: 'save_team', args:{'team':{0:48,1:6,2:0,3:0,4:0,5:0,6:0,7:0,8:0}}};

    //query = {mod: 'serverwar',act: 'get_my_replay', args:{}};

    //query = {mod: 'serverwar',act: 'get_replay', args:{'id' : '53'}};

    //query = {mod: 'serverwar',act: 'get_replay_list', args:{'id' : '16_1'}};

    //query = {mod: 'serverwar',act: 'support', args:{'id' : 2000053, 'progress': 16 } };

    //query = {mod: 'serverwar',act: 'get_reward', args:{}};

    //query = {mod: 'activity',act: 'get_five_role_reward', args:{}};

    //query = {mod: 'activity',act: 'get_tower_reward', args:{'floor' : 80}};

    //query = {mod: 'activity',act: 'get_fight_force_reward', args:{'fight_force':35000}};

    //query = {mod: 'activity',act: 'get_forge_level_reward', args:{'id':1}};

    //query = {mod: 'rank',act: 'get_fight_force_rank', args:{}};

    //query = {mod: 'rank',act: 'get_fight_force_rank_reward', args:{}};

    //query = {mod: 'worldboss',act: 'get', args:{}};

    //query = {mod: 'activity',act: 'buy_group_on', args:{}};

    //query = {mod: 'worldboss',act: 'get', args:{}};

    //query = {mod: 'activity',act: 'buy_group_on', args:{}};

    //query = {mod: 'activity',act: 'go_western', args:{type:'gold'}};

    //query = {mod: 'activity',act: 'open_western', args:{pos:1 }};

    //query = {mod: 'activity',act: 'back_western', args:{}};

    //query = {mod: 'activity',act: 'auto_open_western', args:{}};

    //query = {mod: 'activity',act: 'buy_group_on', args:{}};

    //query = {mod: 'worldboss',act: 'get', args:{}};

    //query = {mod: 'worldboss',act: 'get_reward', args:{}};

    //query = {mod: 'user',act: 'get_day_wheel', args:{'cash':0}};

    //query = {mod: 'user',act: 'get_day_wheel_reward', args:{'cash':0}};

    //query = {mod: 'activity',act: 'visit_cottage', args:{}};

    //query = {mod: 'activity',act: 'visit_cottage_enroll', args:{'cash':1}};

    //query = {mod: 'activity',act: 'get_wealth', args:{}};

    //query = {mod: 'activity',act: 'get_wealth_reward', args:{}};

    //query = {mod: 'activity',act: 'get_payrank', args:{}};

    //query = {mod: 'activity',act: 'get_payrank_top10reward', args:{}};

    //query = {mod: 'activity',act: 'get_payrank_top', args:{}};

    //query = {mod: 'activity',act: 'hit_box', args:{}};

    //query = {mod: 'activity',act: 'get_hit_box_reward', args:{ 'cash' : 0}};

    //query = {mod: 'activity',act: 'get_western', args:{}};

    //query = {mod: 'worldboss',act: 'get', args:{}};

    //query = {mod: 'worldboss',act: 'get_reward', args:{}};

    //query = {mod: 'pet',act: 'bless', args:{}};

    //query = {mod: 'pet',act: 'bless', args:{}};

    query = {mod: 'role',act: 'enroll_special_role', args:{'rid':299}};

    //query = {mod: 'pet',act: 'save_skill', args:{skills:[101]} };

    //query = {mod: 'rank',act: 'get_tower', args:{}};

    query = {mod: 'battle',act: 'tower', args:{'tower':2, 'id' : 1}};

    //query = {mod: 'battle',act: 'reset_tower', args:{'tower':2}};

    //query = {mod: 'battle',act: 'auto_tower', args:{'tower':2}};

    query = {mod: 'cloudshop',act: 'get', args:{}};

    //query = {mod: 'cloudshop',act: 'buy', args:{id:1, num:25}};

    query = {mod: 'cloudshop',act: 'get_wins', args:{}};

    query = {mod: 'cloudshop',act: 'my_buy', args:{}};

    query = {mod: 'cloudshop',act: 'get_reward', args:{times: '2013120400002'}};

    query = {mod: 'activity',act: 'get_cost_gift', args:{}};

    query = {mod: 'activity',act: 'cost_gift_reward', args:{cash:1000}};

    query = {mod: 'activity',act: 'cost_gift_extra_reward', args:{cash:100}};

    query = {mod: 'activity',act: 'get_charge_feed', args:{}};

    query = {mod: 'activity',act: 'open_charge_feed', args:{}};

    query = {mod: 'activity',act: 'exchange_charge_feed', args:{id: 1}};

    query = {mod: 'activity',act: 'get_my_limit', args:{}};

    query = {mod: 'activity',act: 'my_limit_buy', args:{id: 1}};

    query = {mod: 'user',act: 'get_daily_pay', args:{}};

    //query = {mod: 'user',act: 'get_daily_pay_reward', args:{}};

    //query = {mod: 'user',act: 'get_daily_pay_reward', args:{month:1}};

    query = {mod: 'huatuo',act: 'make', args:{}};

    query = {mod: 'huatuo',act: 'promote', args:{}};

    query = {mod: 'huatuo',act: 'harvest', args:{}};

    query = {mod: 'huatuo',act: 'exchange', args:{id:1}};

    query = {mod: 'activity',act: 'get_daily_payrank', args:{day:2}};

    query = {mod: 'activity',act: 'get_daily_payrank_top10reward', args:{day:1}};

    query = {mod: 'activity',act: 'buy_role_send', args:{id:1}};

    query = {mod: 'troopmatch',act: 'get_top', args:{}};

    query = {mod: 'troopmatch',act: 'enter', args:{}};

    //query = {mod: 'troopmatch',act: 'clear_time', args:{}};

    query = {mod: 'troopmatch',act: 'select_role', args:{rid: 34}};

    query = {mod: 'troopmatch',act: 'save_team', args:{team:{0:5, 1:0, 2:0, 3:0}}};

    query = {mod: 'troopmatch',act: 'match', args:{}};

    query = {mod: 'troopmatch',act: 'give_up', args:{}};

    query = {mod: 'troopmatch',act: 'exchange', args:{id: 1}};

    query = {mod: 'activity',act: 'get_pet_gift', args:{}};

    query = {mod: 'activity',act: 'pet_gift_reward', args:{level:4}};

    query = {mod: 'activity',act: 'break_egg', args:{pos: 1}};

    query = {mod: 'activity',act: 'break_egg_reward', args:{}};

    query = {mod: 'activity',act: 'break_egg_clear', args:{}};

    query = {mod: 'equip',act: 'upgrade_star', args:{eid:2}};

    query = {mod: 'activity',act: 'get_charge_limit', args:{}};

    query = {mod: 'activity',act: 'charge_limit_reward', args:{cash:500}};

    query = {mod: 'activity',act: 'charge_limit_buy', args:{cash:10000, id:1}};

    query = {mod: 'battleworld',act: 'register', args:{}};

    //query = {mod: 'battleworld',act: 'get_reward', args:{}};

    //query = {mod: 'battleworld',act: 'get_battle_field', args:{}};

    query = {mod: 'activity',act: 'get_server_payrank', args:{}};

    //query = {mod: 'servermine',act: 'get', args:{}};

    //query = {mod: 'servermine',act: 'occupy', args:{occupy:0, id:2, pos:1}};

    //query = {mod: 'servermine',act: 'leave', args:{}};

    query = {mod: 'user',act: 'get_invite', args:{}};

    query = {mod: 'user',act: 'invite_reward', args:{}};

    query = {mod: 'user',act: 'invite_goal_reward', args:{id:4}};

    query = {mod: 'battle',act: 'duplicate', args:{id: 10012}};

    query = {mod: 'gm',act: 'pay', args:{'key':'','cash':5000}};

    query = {mod: 'activity',act: 'new_year_first_pay_reward', args:{}};

    query = {mod: 'activity',act: 'get_new_year_first_pay', args:{}};

    query = {mod: 'activity',act: 'mystic_shop_buy', args:{id: 1}};

    query = {mod: 'activity',act: 'exchange_charge_feed', args:{id: 1, num:10}};

    query = {mod: 'activity',act: 'my_limit_buy', args:{id: 1, num:1}};

    query = {mod: 'activity',act: 'get_red_packet', args:{}};

    query = {mod: 'activity',act: 'red_packet_reward', args:{id:100}};

    query = {mod: 'activity',act: 'get_reward_year_boss', args:{}};

    query = {mod: 'activity',act: 'get_richsend', args:{}};

    query = {mod: 'activity',act: 'get_richsend_top10', args:{}};

    query = {mod: 'activity',act: 'richsend_reward', args:{cash:5000}};

    query = {mod: 'activity',act: 'richsend_top10reward', args:{}};

    query = {mod: 'activity',act: 'get_new_red_packet', args:{}};

    query = {mod: 'activity',act: 'new_red_packet_reward', args:{id:98}};

    query = {mod: 'activity',act: 'login_invest', args:{cash:100}};

    //query = {mod: 'activity',act: 'login_invest_reward', args:{day:0}};

    //query = {mod: 'activity',act: 'level_invest', args:{cash:998}};

    //query = {mod: 'activity',act: 'level_invest_reward', args:{level:40}};

    query = {mod: 'activity',act: 'level_invest_reward', args:{level:40}};

    query = {mod: 'user',act: 'get_friend', args:{}};

    query = {mod: 'user',act: 'apply_friend', args:{id:1000088}};

    //query = {mod: 'user',act: 'handle_apply_friend', args:{id:1000088, agree:1}};

    //query = {mod: 'user',act: 'shield_friend', args:{id:1000228}};

    //query = {mod: 'user',act: 'black_friend', args:{id:1000228}};

    //query = {mod: 'user',act: 'delete_friend', args:{id:1000228, type:'shield'}};

    query = {mod: 'activity',act: 'new_firstpay_reward', args:{cash:0}};

    query = {mod: 'troopmatch',act: 'get_top', args:{}};

    query = {mod: 'role',act: 'catch_horse', args:{type:'material'}};

    //query = {mod: 'inventory',act: 'buy', args:{id:75, num:1000}};

    query = {mod: 'role',act: 'sell_horse', args:{}};

    //query = {mod: 'role',act: 'upgrade_ride', args:{rid:2,type:'horse'}};

    query = {mod: 'role',act: 'exchange_horse', args:{horse:2,num:1}};

    query = {mod: 'activity',act: 'get_facebook_feed_reward', args:{}};

    query = {mod: 'user',act: 'get_friend', args:{}};

    query = {mod: 'servermine',act: 'get', args:{}};

    query = {mod: 'lottery', act:'get_lottery_number', args:{}};

    query = {mod: 'lottery', act:'select_lottery_number', args:{ 'num':1281,'count':4}};

    query = {mod: 'lottery', act:'lottery_number_reward', args:{}};

    query = {mod: 'lottery', act:'lottery_shop_buy', args:{ 'id':7, 'num':1, tips:1}};

    query = {mod: 'activity',act: 'get_dig_treasure', args:{}};

    query = {mod: 'activity',act: 'open_dig_treasure', args:{pos:19, cash:1}};

    //query = {mod: 'activity',act: 'enter_next_dig_treasure', args:{}};

    //query = {mod: 'activity',act: 'reset_dig_treasure', args:{cash:0}};

    //query = {mod: 'activity',act: 'fight_dig_treasure', args:{id:1000, pos:5}};

    //query = {mod: 'activity',act: 'buy_axe_dig_treasure', args:{}};

    query = {mod: 'role',act: 'kill', args:{ rid:48, cash:1}};

    query = {mod: 'gm',act: 'task_v3', args:{key:'',cmd:'check_award', step:4}};

    query = {mod: 'battle',act: 'duplicate', args:{'id': 200}};

    query = {mod: 'activity',act: 'get_pet_cost', args:{}};

    query = {mod: 'activity',act: 'get_pet_cost_reward', args:{level:2}};

    query = {mod: 'pet',act: 'bless', args:{}};

    query = {mod: 'activity',act: 'get_vip_box', args:{ }};

    query = {mod: 'activity',act: 'buy_vip_box', args:{ id:2}};

    query = {mod: 'equip',act: 'make', args:{'erid':48,'eid':6,'lucky':0,'forge':1}};

    query = {mod: 'equip',act: 'upgrade_star', args:{eid:6}};

    query = {mod: 'battle',act: 'mybattle', args:{id:7}};

    query = {mod: 'role',act: 'upgrade_wing', args:{ rid:1}};

    query = {mod: 'role',act: 'merge_feather', args:{ level:8, count:3}};

    //query = {mod: 'blessdice',act: 'get_bless_dice', args:{}};

    //query = {mod: 'blessdice',act: 'throw_dice', args:{}};

    //query = {mod: 'blessdice',act: 'get_bless_dice_reward', args:{}};

    //query = {mod: 'blessdice',act: 'change_luck', args:{cash:1}};

    //query = {mod: 'blessdice',act: 'buy', args:{ id:2, count:1}};

    query = {mod: 'role',act: 'kill', args:{ rid:1, cash:1}};

    //query = {mod: 'battle',act: 'reset_mybattle', args:{id:2, cash:1}};

    //query = {mod: 'equip',act: 'upgrade_refine_level', args:{eid:17}};

    //query = {mod: 'equip',act: 'refine', args:{eid:17}};

    query = {mod: 'activity',act: 'get_all_gift', args:{}};

    query = {mod: 'activity',act: 'get_all_gift_reward', args:{type:'self'}};

    query = {mod: 'role',act: 'grouth_break', args:{rid:300 }};

    query = {mod: 'activity',act: 'lucky_circle_refresh', args:{cash:1}};

    query = {mod: 'activity',act: 'lucky_circle_start', args:{ten:0}};

    //query = {mod: 'activity',act: 'lucky_circle_reward', args:{id:1}};

    query = {mod: 'activity',act: 'lucky_circle_exchange', args:{id:1, num:1}};

    query = {mod: 'role',act: 'soul_break', args:{rid:12 }};

    query = {mod: 'role',act: 'soul', args:{rid:12, card1:12, card2:12, card3:12}};

    query = {mod: 'battle',act: 'mybattle', args:{id:40}};

    query = {mod: 'activity',act: 'get_all_charge', args:{}};

    query = {mod: 'activity',act: 'all_charge_reward', args:{id:1}};

    //query = {mod: 'activity',act: 'get_year_feed_back', args:{}};

    //query = {mod: 'activity',act: 'year_feed_back_reward', args:{id:1}};

    query = {mod: 'activity', act: 'national_seven_get', args: {}};
    //query = {mod: 'activity', act: 'national_seven_reward', args :{id:1} };
    
    query = {mod: 'combine', act: 'change_stone', args: {}};

    query.uid = 1003164;
    query.seq = 1;

    var resp = {code:0, desc:'', data:{}};
    var logicHandler = logic[query.mod][query.act];
    gPlayers.load(query.uid, function(player){
        logicHandler(player, query, resp, function(){
            console.log(JSON.stringify(resp));
            player.save(true, function(){
                process.exit(-1);
            });
        });
    });
}
